<!DOCTYPE html>
<html>
<head>
    <title>待推送文章</title>
    <#include "/header.html">
</head>
<body>
<style>
    th {
        text-align: center;
    }
</style>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <!--            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">文章ID</div>
                <div class="col-sm-10">
                    <input disabled type="text" class="form-control" v-model="bArticleStand.articleId"
                           placeholder="文章ID"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label">文章标题</div>
                <div class="col-sm-10">
                    <input disabled type="text" class="form-control" v-model="bArticleStand.articleTitle"
                           placeholder="文章标题"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">文章分类</div>
                <div class="col-sm-10">
                    <input disabled type="text" class="form-control" v-model="bArticleStand.articleTypeName"
                           placeholder="文章分类ID"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">资源类型</div>
                <div class="col-sm-10">
                    <div v-if="bArticleStand.resourceType == 1">
                        <input disabled type="text" class="form-control" value="文章" placeholder="文章"/>
                    </div>
                    <div v-if="bArticleStand.resourceType == 2">
                        <input disabled type="text" class="form-control" value="视频" placeholder="视频"/>
                    </div>
                    <div v-if="bArticleStand.resourceType == 3">
                        <input disabled type="text" class="form-control" value="素材" placeholder="素材"/>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">开始推送</div>
                <div class="col-sm-10">
                    <input type="datetime-local" class="form-control" v-model="bArticleStand.startTime"
                           placeholder="开始时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">结束推送</div>
                <div class="col-sm-10">
                    <input type="datetime-local" class="form-control" v-model="bArticleStand.endTime"
                           placeholder="结束时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">排序</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="bArticleStand.orderInx" placeholder="排序"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/barticlestand.js?_${.now?long}"></script>
</body>
</html>
